﻿<UserControl x:Class="StockholmsStad.Windows.UI.Modules.MainModule.Views.ToolBarView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:converters="clr-namespace:StockholmsStad.Windows.UI.Infrastructure.Converters;assembly=StockholmsStad.Windows.UI.Infrastructure">
    <UserControl.Resources>
        <converters:BoolToVisibilityConverter x:Key="boolToVisibilityConverter" />
    </UserControl.Resources>
    
    <ToolBarTray x:Name="toolbarTray" Orientation="Vertical" VerticalAlignment="Stretch" 
                 IsLocked="True" HorizontalAlignment="Stretch">
        <ToolBarTray.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFB6D4F3" Offset="0.018" />
                <GradientStop Color="#FFF9FCFF" Offset="0.844" />
                <GradientStop Color="#FF76B3F1" Offset="0.04" />
            </LinearGradientBrush>
        </ToolBarTray.Background>
        <ToolBar Background="Transparent">
            <Button Height="48" Width="48" Click="ToggleBar_Click" x:Name="Couple">
                <Image Source="../Resources/Images/pair48.png" ToolTip="Lägg till/Ändra par" />
            </Button>
            <Button Height="48" Width="48" Click="ToggleBar_Click" x:Name="Ceremony">
                <Image Source="../Resources/Images/vigpar48.png" ToolTip="Redigera ceremoniinformation" />
            </Button>
            <Button Height="48" Width="48" Click="ToggleBar_Click" x:Name="Minister">
                <Image Source="../Resources/Images/exec48.png" ToolTip="Lägg till/Ta bort/Ändra förrättare" />
            </Button>
            <Button Height="48" Width="48" Click="ToggleBar_Click" x:Name="Maintenance" 
                    Visibility="{Binding IsVisible, Converter={StaticResource boolToVisibilityConverter}}">
                <Image Source="../Resources/Images/settings48.png" ToolTip="Lägg till/Ta bort värden användare, värden mm" />
            </Button>
            <Button Height="48" Width="48" Click="ToggleBar_Click" x:Name="WatchList">
                <Image Source="../Resources/Images/todo48.png" ToolTip="Aktuellt just nu" />
            </Button>
        </ToolBar>
    </ToolBarTray>

</UserControl>
